package com.xplay.xpocker.room.mahjong;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * 麻将一些配置信息
 * 比如明牌
 */

@Data
@Component
@ConfigurationProperties(prefix = "mahjong.config")
public class MahjongConfigProp {

    private static MahjongConfigProp INSTANCE;

    @PostConstruct
    public void init() {
        INSTANCE = this;
    }

    public static MahjongConfigProp getInstance() {
        return INSTANCE;
    }

    private boolean desensitize;
}
